package com.yingxue.demo.exception.enums;

import lombok.AllArgsConstructor;

/**
 * @Package: com.company.demo
 * @Author: Mr.Waves
 * @Date: 2020-03-05 20:03
 * @Description: 请求错误
 **/
@AllArgsConstructor
public enum BadRequestExceptionEnum implements BaseExceptionEnum{
    ARGS_INVALID(400, "用户请求参数校验不通过，请检查提交信息"),
    ACCOUNT_NOT_EXIST(400, "账号不存在"),
    ACCOUNT_LOCKED(400, "该账号被锁定，请联系系统管理员"),
    ACCOUNT_PASSWORD_NOT_MATCH(400, "账号密码不正确，请重新登录"),
    USERNAME_OCCUPIED(400,"用户名已被占用，请选用其他用户名")
    ;

    private Integer code;
    private String message;

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
